Efficient SSL/TLS proxy

ABSTRACT

Systems, devices, and methods are disclosed for selectively decrypting SSL/TLS communications. Contents of the decrypted communications that may result in some action; for example, to terminate the communications, or to log and store the plaintext packets of the communications for subsequent content inspection and analysis. A SSL/TLS proxy may examine the information contained in the TLS handshake protocol and/or examine other information associated with the connection. Based on the examination, a proxy may determine whether or not to decrypt the encrypted communications. The proxy may take additional actions based on content inspection.

CROSS-REFERENCE TO RELATED APPLICATION(S)

The present application is a non-provisional of U.S. Patent Application Ser. No. 62/536,254, filed Jul. 24, 2017, the contents of which are hereby incorporated by reference in its entirety.

FIELD

Aspects described herein generally relate to computer hardware and software and network security. In particular, one or more aspects of the disclosure generally relate to computer hardware and software for selectively decrypting encrypted communications.

BACKGROUND

Network security is becoming increasingly important as the information age continues to unfold. In TCP/IP networks, in-transit communications between endpoints may be secured by using the Transport Layer Security (TLS) protocol, or by using TLS's predecessor, the Secure Sockets Layer (SSL) protocol. TLS provides for privacy, authentication, and integrity of communications. For example, the Secure Hyper-Text Transfer Protocol (HTTPS) protocol that is commonly used to secure web communications consists of communication over Hyper-Text Transfer Protocol (HTTP) within a connection encrypted by TLS or SSL. Often, it may be desirable to use an inline SSL/TLS proxy to intercept and decrypt an in-transit TLS communication in order to inspect the communication's plaintext and then take some action based on the plaintext content. Typically, an SSL/TLS proxy decrypts all of the SSL/TLS-secured communications passing through it; but this may be undesirable and inefficient because of, for example, computational resource issues, network performance issues, management complexity issues, and/or privacy protection issues. Accordingly, there is a need for methods and logic by which an SSL/TLS proxy can selectively decrypt SSL/TLS communications.

SUMMARY

The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosure. It is intended neither to identify key or critical elements of the disclosure nor to delineate the scope of the disclosure. The following summary merely presents some concepts of the disclosure in a simplified form as a prelude to the description below.

Aspects of this disclosure relate to an efficient SSL/TLS proxy that selectively decrypts SSL/TLS communications. Additional logic may then be applied to the contents of the decrypted communications that may result in some action; for example, to terminate the communications, or to log and store the plaintext packets composing the communications for subsequent content inspection and analysis. In accordance with embodiments of the disclosure, an efficient SSL/TLS proxy may receive data that indicates which SSL/TLS communications are to be decrypted; alternatively, the data may indicate which SSL/TLS communications are not to be decrypted. Additionally or alternatively, the efficient SSL/TLS proxy may receive a hybrid list indicating a portion of SSL/TLS communications that are to be decrypted and another portion of SSL/TLS communications that are not to be decrypted. The data indicating the SSL/TLS communications may comprise application-level (Layer 7) information to identify one or more sets of SSL/TLS communications In some embodiments, the identification data may comprise Uniform Resource Identifiers ((URIs), which include Uniform Resource Locators (URLs)) associated with the communication. In other embodiments, the identification data may comprise Fully Qualified Domain Names (FQDNs). In yet other embodiments, the identification data may comprise Internet Protocol (IP) addresses. In some scenarios, the identification data for the SSL/TLS communication may be embedded within the encrypted packets, and thus not available for examination as plaintext. Such may be the case for HTTPS communications, as well as for other protocols that use URIs, FQDNs for host names, and domain names for addressing, and are secured by SSL/TLS, such as Secure File Transfer Protocol (FTPS). In such scenarios, the efficient SSL/TLS proxy may examine the information contained in the TLS handshake protocol and/or examine other information associated with the connection. Based on the examination, and on a comparison of the communications identification list, the efficient SSL/TLS proxy may determine whether or not to decrypt the encrypted communications. If or when the efficient SSL/TLS proxy determines that the encrypted communication is to be decrypted, then the efficient SSL/TLS proxy may decrypt the communications so that the plaintext content may be inspected. The efficient SSL/TLS proxy may comprise additional logic to inspect the plaintext content after it has been decrypted. In some embodiments, the efficient SSL/TLS proxy may take additional actions based on the plaintext content. These additional actions may be taken to result in some higher-level application or policy, such as cybersecurity, e.g., protecting a network and its assets from attacks perpetrated by malicious actors; or such as wiretapping associated with law enforcement, where only specific communications may be decrypted for observation; or such as protecting the privacy of personal medical and medical insurance information. If or when the efficient SSL/TLS proxy determines that the encrypted communication is not to be decrypted, then this may also be to effect some higher-level application or policy, such as privacy protection and compliance with privacy laws and policies.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure is pointed out with particularity in the appended claims. Features of the disclosure will become more apparent upon a review of this disclosure in its entirety, including the drawing figures provided herewith.

Some features herein are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which like reference numerals refer to similar elements, and wherein:

FIG. 1 depicts a flowchart of the operation of an efficient SSL/TLS proxy;

FIG. 2 depicts an illustrative environment for an efficient SSL/TLS proxy that selectively decrypts encrypted communications in accordance with one or more aspects of the disclosure;

FIG. 3 depicts an illustrative efficient SSL/TLS proxy for selective decryption of encrypted communications in accordance with one or more aspects of the disclosure;

FIGS. 4A, 4B, 5A, 5B, 5C, and 6 depict example event sequences that illustrate methods for selectively decrypting TLS-secured communications in accordance with one or more illustrative aspects described herein.

FIGS. 4A and 4B illustrate processes in which the efficient SSL/TLS proxy determines to not decrypt an HTTPS session, based on the domain name of the HTTPS server.

FIGS. 5A, 5B, and 5C illustrate processes in which the efficient SSL/TLS proxy may determine to decrypt an HTTPS session, based on the domain name of the HTTPS server.

FIG. 6 depicts illustrate a process similar to FIG. 5 except the session's URI does not match any element in URI-decrypt-list.

DETAILED DESCRIPTION

In the following description of various illustrative embodiments, reference is made to the accompanying drawings, which form a part hereof, and in which is shown, by way of illustration, various embodiments in which aspects of the disclosure may be practiced. It is to be understood that other embodiments may be utilized, and structural and functional modifications may be made, without departing from the scope of the disclosure. In addition, reference is made to particular applications, protocols, and embodiments in which aspects of the disclosure may be practiced. It is to be understood that other applications, protocols, and embodiments may be utilized, and structural and functional modifications may be made, without departing from the scope of the disclosure.

Various connections between elements are discussed in the following description. These connections are general and, unless specified otherwise, may be direct or indirect, wired or wireless, physical or logical. In this respect, the specification is not intended to be limiting.

For simplicity of description, assumptions are made that the TLS-tunneled protocol is HTTP, that the HTTPS server's port is 443 and TCP, and the IP version is IPv4. These assumptions and associated specifications are not intended to be limiting in any way. The description may be readily adapted to cover other application-level protocols besides HTTP, other ports besides 443, other transport protocols besides TCP (e.g., UDP, SCTP, etc.), and other IP versions, such as IPv6.

Many TCP/IP network communications are transmitted in plaintext, and thus an observer may read the communications by tapping a link (wired, wireless, virtual, etc.) that bears the communications. Such observations may not be desirable. For example, a cybercriminal may observe financial transactions or collect other sensitive data; or, personal privacy may be breached. The Transport Layer Security (TLS) protocol, or its predecessor the Secure Socket Layer (SSL) protocol, may be used to secure in-transit network communications via encryption, and thereby prevent the communications' plaintext from being observed. To secure a communication, two endpoints may first set up a TLS tunnel using the TLS handshake protocol, and then send the communications through the tunnel. The tunnel may afford privacy via encryption; identity authentication via X.509 certificates and associated public-key cryptography; and communications integrity via message authentication coding.

For historical reasons, the labels “SSL” and “TLS” are often used interchangeably, even though TLS has largely replaced and displaced SSL, which is the predecessor of TLS, and which has been deprecated/prohibited by the Internet Engineering Task Force (IETF) because of security flaws. One labeling convention, which is adopted herein, is to use the label “SSL/TLS” to indicate either or both protocols. In the illustrative examples, embodiments, and drawings, the TLS protocol is used, unless otherwise noted, but this does not restrict the scope in any way vis-à-vis SSL, as the differences between SSL and TLS are inconsequential in the context of the present disclosure.

A popular use of SSL/TLS is securing HTTP (web) communications while transiting across networks. This configuration is called the HTTPS protocol. Usage of HTTPS for securing legitimate e-business communications has become widespread. Usage of HTTPS by cybercriminals and other malicious actors has also become widespread with the motivations being that HTTPS obfuscates their malicious activity, and that detection and mitigation of such malicious activity is typically more difficult and costly than for HTTP-mediated malicious activity.

One approach to defending a network from cybercriminals and cyber-attacks may be to: (a) collect cyber threat intelligence (CTI) on the network addresses of endpoints operated/controlled by malicious actors; (b) filter all network traffic—TCP/IP packets—for communications with the network addresses; (c) if a match or correspondence is found between a network address in the CTI and a network communication, then take some action; for example, block the communication; or monitor, log and capture the packets composing the communication; and (d) analyze the communication for attack severity, asset damage, mitigating actions, remedial actions, etc.

Network addresses from CTI may comprise one or more of the following forms of identification data: network-layer (Layer 3) Internet Protocol (IP) addresses and protocol identifiers, transport-layer (Layer 4) ports, and application-layer (Layer 7) domain names (e.g., “cybersite.net”), host FQDNs (e.g., “www.cybersite.net”), URIs (e.g., “http://www.cybersite.net/path-segment-1/path-segment-2/resource-id”), and IP addresses (e.g., contained in HTTP header extensions to identify originating sources). If or when a communication is mediated by HTTP, the network address information for the communication may be filtered directly against CTI because the network address information is not encrypted. If or when a communication is mediated by HTTPS, however, host FQDNs or URI addresses comprised within the HTTP messages may be encrypted, and therefore may not be filtered directly against CTI. This may be problematic for cyber analysts who are searching for cyber threats and attacks, because CTI in the form of URIs are typically considered to be the highest fidelity threat indicators. Conversely, this may be advantageous to cybercriminals, who may evade conventional cybersecurity controls by using HTTPS to transfer sensitive information to URI-addressed resources that they control.

A conventional solution to viewing the plaintext of HTTPS-secured communications may be to deploy inline an SSL/TLS proxy. When two endpoints, for example a web client (e.g., a web browser application) and a web server, initiate an HTTPS session, the proxy may first create two separate TLS tunnels: one between the proxy and the web client, and another between the proxy and the web server. Each tunnel's terminals may encrypt ingressing information and may decrypt egressing information. Inside the proxy, a “man-in-the-middle” (MITM) may sit between the tunnels' terminals and may function as an intermediary between the two TLS tunnels, and may apply logic to the (plaintext) information passing from one tunnel to the other. The MITM may, for example, inspect the plaintext of the HTTP communications, including the full URI. The plaintext URI may be compared to CTI to detect a potential attack.

There are some efficiency issues with the SSL/TLS proxy that the present disclosure addresses. One issue is that SSL/TLS proxies are computer-resource intensive, in comparison to intermediary functions that do not decrypt and re-encrypt TLS-secured communications. If sufficient computer resources are not available, then network performance may be adversely affected to the point of degrading end-user experience. Conversely, sufficient computer resources and proxy management costs may be financially expensive—for both capital expenditures (CAPEX) and operating expenditures (OPEX)—relative to budget; thus, unless there is a compelling reason or requirement to use an SSL/TLS proxy, then organizations may choose not to use them.

Another issue may be that after the proxy tunnels and MITM are set up, the decrypt/re-encrypt process continues for the entire session, i.e., there may be no way to stop the decrypt/re-encrypt process without stopping the communications—even after it may have been determined that the proxy is no longer needed to read the communications' plaintext. Another issue may be that for some applications or policies, including cybersecurity and privacy protection, often only a relatively small percentage of the SSL/TLS-tunneled traffic needs to be decrypted into plaintext; but, because there may be no native mechanism for these applications and policies to selectively decrypt only relevant sessions, then significant inefficiencies may result. For example, a cybersecurity application may only be interested in the plaintext of HTTPS sessions for which the underlying HTTP is accessing a particular URI or URIs; but because the URI may not be sent in plaintext during an HTTPS session, then to determine if or when an HTTPS session may be accessing a particular URI may require decryption of the HTTPS session.

The present disclosure describes techniques for selectively decrypting SSL/TLS-secured sessions, such as an HTTPS session, when the selection criteria are FQDNs for hosts (e.g., “www.abc123.com”) and URIs (e.g., https://www.abc123.com/path-segment-1/path-segment-2/resource). The utility of the techniques arises because for HTTPS sessions, when the TLS-tunneled HTTP session is sending HTTP messages containing hosts' FQDNs and URIs, these HTTP messages are encrypted; thus, the selection criteria—the hosts' FQDNs and the URIs—cannot be read in plaintext by an observer outside the tunnel.

FIG. 1 depicts a flowchart that illustrates a method of selectively decrypting SSL/TLS communications, in accordance with one or more example embodiments. As seen in FIG. 1, one or more steps of the depicted example flowchart and other similar examples described herein may be performed in a computing environment such as the system illustrated in FIG. 2, as well as other systems having different architectures (e.g., FIG. 3). In other embodiments, the method illustrated in FIG. 1 and/or one or more steps thereof may be embodied in a computer-readable medium, such as a non-transitory computer readable memory.

Referring to FIG. 1, at Step 1-1, according to one or more embodiments described herein, an efficient SSL/TLS proxy (“E-PROXY”) may construct lists of identification data. The E-PROXY may be configured to construct a first list, called the “URI-decrypt-list”, of URIs that, for any HTTPS sessions connecting with a URI address in the URI-decrypt-list, the HTTPS session will be decrypted. The E-PROXY may also construct a second list, called the “domain-name-decrypt-list”, of domain names and hosts' FQDNs that, for any HTTPS sessions connecting with a host whose name is in the domain-name-decrypt-list, the HTTPS session will be decrypted, while HTTPS sessions with hosts that are not in the domain-name-decrypt-list will not be decrypted.

In Step 1-2, and for each URI in the URI-decrypt-list, the E-PROXY may extract the host name value, which may comprise an FQDN or an IP address, in the URI, and add the extracted name values to the domain-name-decrypt-list. E-PROXY may be further configured to remove duplicates from the domain-name-decrypt-list. Alternatively or additionally, E-PROXY may prevent adding a duplicate host name value identifier to the domain-name-decrypt list. The domain-name-decrypt-list may contain IP addresses, but in some embodiments the list may comprise domain names and FQDNs to indicate hosts.

In Step 1-3, E-PROXY may provide the domain-name-decrypt-list to its “man-in-the-middle” (MITM), an agent device that observes, and may act upon, all network traffic on a link that will transport HTTPS sessions between endpoints, which may comprise HTTPS clients and HTTPS servers. In Step 1-4, for each TLS tunnel setup, or TLS handshake, session transported by the link, the MITM agent may inspect the value of the Server Name Indication (SNI) field—which may correspond to the FQDN of the destination HTTPS server—contained in the (plaintext) ClientHello message sent by the HTTPS client to the HTTPS server; and, from the subsequent (plaintext) Certificate message sent by the HTTPS server to the HTTPS client, may inspect the value of the server certificate's Subject:CN (Common Name) field—which is also the FQDN of the HTTPS server. Note that the SNI value should, but not necessarily, match the Subject:CN value. In one or more embodiments/examples/scenarios, the SNI value and the CN value may match. In such embodiments, the MITM agent may be configured to proceed with the TLS session. In other embodiments, the SNI value and the CN value may not match, and the MITM agent may be configured to choose the CN value for determining selective encryption, because it is reliably the FQDN of the server for the HTTPS session, whereas the SNI value is not reliable; or alternatively, the MITM agent may alert the anomaly but proceed with the TLS session, or may alert the anomaly and terminate the TLS session.

Also in Step 1-4, the MITM agent may compare the server's FQDN value to the elements in the domain-name-decrypt-list. If or when there is not a match or sufficient correspondence, then in Step 1-5 a the MITM agent may take no action to decrypt the session, thereby saving computational resources and possibly enforcing policies, such as privacy protection policies. If or when there is a match or sufficient correspondence, then in Step 1-5 b the agent may set up and use an SSL/TLS proxy function to (a) decrypt the HTTPS session; and (b) inspect the plaintext of the HTTPS session. Before applying any intermediating logic to the plaintext, the MITM agent checks if the session's domain name value was inserted into the domain-name-decrypt-list because it was a host name extracted from the URI-decrypt-list. If so, then the agent compares the session's URI value to elements in the URI-decrypt-list. If there is not a match or sufficient correspondence, then in Step 1-6 a, the agent may re-encrypt the session and forward to the destination without applying any intermediating logic to the session's plaintext. If there is a match, or if the session's domain name was not generated from the URI-decrypt-list, then in Step 1-6 b the agent may apply some intermediating logic to the session's plaintext. The intermediating logic may, for example, take some action on the session specified by a higher-level application (e.g., cybersecurity, privacy protection, law enforcement), such as blocking the communication; or allowing the communication to proceed but logging and capturing the plaintext packets composing the communication; or applying some transformation to the plaintext. If the communication is not blocked by the intermediating logic, then the plaintext packets are re-encrypted and forwarded to the destination.

Note that if the process of FIG. 1 proceeds to Step 1-5 b and decrypts the session, but then proceeds to Step 1-6 a because the session's URI does not match an element in the URI-decrypt-list, then the session was unnecessarily decrypted. However, there are still efficiencies gained because Step 1-6 a skips the application of any intermediating logic as occurs in Step 1-6 b. Furthermore, there is a non-zero probability that in Step 1-5 b the URIs will match, and then the process will proceed to Step 1-6 b; in which case the decryption was necessary. Thus, despite the possible unnecessary decryption that may occur in Step 1-5 b, the overall process, when applied continually to all TLS sessions in a typical, practical computing environment, is deterministically more efficient.

Additionally or alternatively, instead of a domain-name-decrypt-list, a domain-name-do-not-decrypt-list may be used by the agent to selectively not decrypt HTTPS sessions, if the host's FQDN associated with an HTTPS session is included in the domain-name-do-not-decrypt-list. Or, both types of lists may be used simultaneously, with one list given priority over the other list. This situation may arise when different applications or policies are generating the lists, for example, the domain-name-decrypt-list may be generated by cybersecurity applications and policies, and the domain-name-do-not-decrypt-list may be generated by privacy protection applications and policies.

FIG. 2 depicts an illustrative environment for an efficient SSL/TLS proxy that selectively decrypts encrypted communications, in accordance with one or more aspects of the disclosure. Referring to FIG. 2, environment 100 may include Network A 102 and Network B 104, which may be connected by a network link 106 providing internetwork access/interconnect. Network A 102 may comprise one or more networks (e.g., Local Area Networks (LANs), Wide Area Networks (WANs), Virtual Private Networks (VPNs), Software-Defined Networks (SDNs), or combinations thereof) associated with one or more individuals or entities (e.g., governments, corporations, service providers, or other organizations). Network B 104 may comprise one or more networks (e.g., LANs, WANs, VPNs, SDNs, or combinations thereof) that interface Network A 102 with one or more other networks (not illustrated). For example, Network B 104 may comprise the Internet, or a similar network, or portions thereof.

Environment 100 may also include one or more hosts, such as computing or network devices (e.g., servers, desktop computers, laptop computers, tablet computers, mobile devices, smartphones, routers, gateways, proxies, firewalls, switches, access points, or the like). For example, network 102 may include hosts 110, 112, and 114, which may be configured to function as clients; proxy devices 120; and network 104 may include hosts 130, 132, and 134, which may be configured to function as servers. As used herein, “host” (or “hosts”) refers to any type of network device (or node) or computing device; while such devices may be assigned (or configured to be assigned) one or more network-layer addresses, the term “host” (or “hosts”) does not imply such devices necessarily are assigned (or configured to be assigned) one or more network-layer addresses.

PROXY 120 may be located at or near a network border and a network link 106 between networks 102 and 104 and may interface network 102 or one or more hosts located therein with network 104 or one or more hosts located therein. For example, network 104 may include hosts 130, 132, and 134 which may be hosting networked application servers (e.g., web servers); and network 102 may include hosts 110, 112, and 114 which may be hosting networked application clients (e.g., web browsers). Proxy 120 may act as an intermediating agent for networked applications' clients and servers, for example a web proxy that intermediates the HTTP sessions between web clients and web servers, or an SSL/TLS proxy that intermediates HTTPS sessions between web clients and web servers.

FIG. 3 depicts an illustrative efficient SSL/TLS proxy E-PROXY 120 for selective decryption of TLS-secured communications in accordance with one or more aspects of the disclosure. Referring to FIG. 3, proxy 120 may be located inline on network link 106 that connects network 102 and network 104. Proxy 120 may comprise one or more TCP agents (e.g., TCP-AGT1 121, and TCP-AGT2 122), one or more TLS agents (e.g., TLS-AGT1 123, and TLS-AGT2 124), a “man-in-the-middle” (MITM) intermediary MITM 125, a certificate authority CA 126, a list manager LST-MGR 128, a memory STORE 129, network interfaces NTKW I/F 127, and a data bus DATA-BUS 140 that interconnects the proxy's components. Proxy 120 may interface inline with network link 106 via network interfaces 127. Thus, IP packets comprising TLS-secured communications between endpoints attached to network 102 and network 104 may pass through the proxy 120. TCP agents 121 and 122 may terminate TCP connections, maintain TCP session state, and spoof IP-network endpoints. TCP agents 121 and 122 may also be configured to compute (locally unique) flow identifiers, maintain flow state information, send/receive messages to/from other proxy components, and route/switch messages to other proxy components. TCP agents 121 and 122 may store and retrieve state information and other information via the memory STORE 129. TLS agents TLS-AGT1 123 and TLS-AGT2 124 may terminate TLS tunnels, maintain TLS session state, and spoof TLS clients and servers. TLS agents 123 and 124 may also be configured to maintain TLS session state information, send/receive messages to/from other proxy components, and route/switch messages to other proxy components. TLS agents 123 and 124 may store and retrieve state information and other information via the memory store 129. TLS agents 123 and 124 may interact with certificate authority CA 126 to generate digital certificates, for example X.509 certificates, as needed, in accordance with one or more aspects of the disclosure.

The “man-in-the-middle” (MITM) intermediary agent MITM 125 may be configured to implement higher-level applications, such as cybersecurity applications, law enforcement applications, and privacy protection applications, that act on information in packets that have been decrypted by TLS agents 123 and 124; for example, a MITM agent 125 may copy packets and store them in memory store 129, may log packets and may store the logs in memory store 129, etc., in accordance with one or more requirements of the higher-level applications that are executing within the proxy 120. The MITM agent 125 may also be configured to signal message routing between proxy components in order to make the proxy operate efficiently, in accordance with one or more aspects of the disclosure. The MITM agent 125 may make and signal message routing decisions between proxy components based on information it receives from the list manager LST-MGR 128, by comparing IP addresses, domain names, and URIs associated with communications passing through the proxy with lists of IP addresses, domain names, and URIs created and maintained by the list manager 128.

FIG. 3 illustrates one example of a system architecture that may be used, and in some instances, the specific system architecture and computing devices used may vary, and are secondary to the functionality that they provide, but without departing from the scope of the disclosure. For example, one or more of the computing devices may be distributed across a network, i.e., portions of the data bus DATA-BUS 140 may be a network. As another example, some components may be logically contained in another components, e.g., the TCP agents and TLS agents may be integrated into a single component. As yet another example, the memory STORE 129 may be composed of multiple subcomponents that may be shared by multiple computing devices or dedicated to a single computing device.

FIGS. 4, 5, and 6 depict illustrative event sequences for an efficient SSL/TLS proxy that selectively decrypts encrypted communications, in accordance with one or more aspects of the disclosure. The depicted steps are merely illustrative and may be omitted, combined, or performed in an order other than that depicted; the numbering of the steps is merely for ease of reference and does not imply any particular ordering is necessary or preferred. The TLS handshake process depicted is the basic handshake; other handshake message sequences are possible, but these do not affect the scope of the present disclosure. FIGS. 4, 5, and 6 depict an example embodiment in which the HTTPS protocol on port 443 is used, and the SSL/TLS proxy is transparent at network layer 3. In other words, the proxy components do not have IP addresses, nor do the proxy components alter the layer 3/IP-layer source and destination IP addresses and the protocol type, nor do they alter the layer 4/transport-layer source and destination ports. However, these constraints, instances, and assumptions are exemplary and do not limit the scope of the present disclosure, which may be applied to other TLS-secured protocols besides HTTPS and may be applied to non-transparent proxies in other similar embodiments.

Also, for simplicity of description, when reference is made to TLS handshake messages, such as ClientHello, being sent between components X and Y, this is a shorthand notation for “the one or more IP packets containing the TLS message ClientHello are sent from component X to component Y”. Similarly, for HTTP messages, such as a GET method, as each HTTP message may be contained in one or more IP packets being sent between components.

FIGS. 4A and 4B illustrate an embodiment in which the efficient SSL/TLS proxy determines to not decrypt an HTTPS session, based on the domain name of the HTTPS server. Referencing FIG. 4A, at Step 4-1, a domain-name-decrypt-list containing domain names is generated by a list manager LST-MGR 128. List generation may be performed, among others, via a user interface that accepts domain names, hosts' FQDNs, etc., as input, or via extraction of hosts' FQDNs from URIs supplied by threat intelligence providers via subscription services, or from domain names supplied by threat intelligence providers via subscription services, or via privacy protection data and policies, among others. At Step 4-2, the list manager LST-MGR 128 may transfer the domain-name-decrypt-list to the MITM 125. If or when the higher-level application that is using the efficient SSL/TLS proxy requests to compare the HTTPS sessions' URIs to a database of URIs, as may occur in, e.g., cybersecurity applications, then the list manager may also generate and send to the MITM 125 a URI-decrypt-list containing URIs which were used to derive some portion of the domain names in the domain-name-decrypt-list.

At Step 4-3, host HOST1 110 may initiate an HTTPS session with a web server SRV1 130 with a domain name, for example, “www.srv1.net,” via a web browser (a web/HTTP(S) client) application by pointing a browser to a URI (e.g., “https://www.srv1.net/index.html”). HOST1 110 may resolve the domain name “www.srv1.net” to an IP address, for example, 1.2.3.4. In some embodiments HOST1 110 may resolve the domain name by checking a local cache. In other embodiments, HOST1 110 may query a Domain Name System (DNS) server (not shown in FIG. 4A).

To initiate the HTTPS session's communications with web server SRV1 130, at Step 4-3, HOST1 110 may initiate a TCP connection with web server SRV1 130 on port 443 by issuing a TCP SYN message, which may be intercepted by TCP-AGT1 121. TCP-AGT1 121 may locally compute (and may record in a lookup table) a (bi-directional) flow identifier “Flow-1234” for the TCP connection. For example, a flow identifier may comprise a hash of the packet's source and destination IP addresses, source and destination ports, IP protocol type, and possibly other information, as well as the current, or initial default, intra-proxy packet-forwarding action for packets associated with this HTTPS session. For packets transmitting in the direction of client-to-server, such as the TCP SYN packet initiating a new session, the initial default intra-proxy packet-forwarding action may be to forward the packet from TCP-AGT1 121 directly to TCP-AGT2 122, as shown in Step 4-4. TCP-AGT2 122 may compute and record the flow identifier “Flow-1234” and initial default intra-proxy packet-forwarding action (which is to forward packets transmitting in the direction of server-to-client from TCP-AGT2 122 directly to TCP-AGT1 121). At Step 4-5, TCP-AGT2 122 may forward the TCP SYN packet towards its destination of web server SRV1 130.

At Step 4-6, the multiple substeps of TCP packet transmissions that establish the TCP connection between host HOST1 110 and web server SRV1 130, with TCP-AGT1 121 and TCP-AGT2 122 intermediating, are shown in aggregate as bi-directional arrows between HOST1 110, TCP-AGT1 121, TCP-AGT 122, and SRV1 130.

The next few steps establish a TLS tunnel between HOST1 110 and SRV1 130, intermediated by the SSL/TLS proxy, during which a search is conducted on the domain-name-decrypt-list. At Step 4-7, HOST1 110 may send a TLS ClientHello message towards SRV1 130, which is intercepted by TCP-AGT1 121. Upon receiving the TLS ClientHello message (which initiates the TLS handshake/tunnel setup process), TCP-AGT1 121 may be configured to set its intra-proxy packet-forwarding action to forward client-to-server packets for this flow Flow-1234 to TLS-AGT1 123. At Step 4-8, TCP-AGT1 121 may send the TLS ClientHello message to TLS-AGT1 123.

In response to receipt of the one or more packets comprising the ClientHello message, in Step 4-9, TLS-AGT1 123 may compute and record a flow identifier value (e.g., “Flow-1234”) and an initial default intra-proxy packet forwarding action, which may be to forward the ClientHello message directly to TLS-AGT2 124. TLS-AGT1 123 may extract a Server Name Indication (SNI) value from the ClientHello message. In some embodiments, the SNI value may not be available because the use of the SNI field by the browser/host (to signal the server as to which virtual domain is being requested) may be optional. In other embodiments, the SNI value may be incorrect or may have been manipulated by a malicious adversary. In any case, the certificate provided by the server SRV1 130 (www.srv1.net) in a subsequent step will have the actual server name (www.srv1.net) in the certificate's Subject:CN (Common Name) field, and can be used to verify (or not) that the SNI value is correct. Assume that the SNI value is being used and is correct, i.e., the value is www.srv1.net. At Step 4-9, TLS-AGT1 123 may send a query to MITM 125 to check if www.srv1.net is in the domain-name-decrypt-list. At Step 4-10, in response to receiving the query request of Step 4-9, MITM 125 may search the domain-name-decrypt-list, and based on the search, may determine that www.srv1.net is not in the list, and thus the session should not be decrypted, and may respond to the query with an indication that the requested domain was not found, which may signal TLS-AGT1 123 that www.srv1.net is not in the domain-name-decrypt-list, and therefore that the associated HTTPS session should not be decrypted by the proxy.

Referencing FIG. 4B, at Step 4-11, TLS-AGT1 123 may signal both TCP agents (e.g., TCP-AGT1 121 and TCP-AGT2 122) to send all (directional) intra-proxy packets corresponding to flow identifier “Flow-1234” directly to each other, that is, to bypass the proxy function. This step has the advantage of increasing the efficiency of the proxy, and reducing the processing load and the resource load on the proxy, by avoiding unnecessary decryption and re-encryption of communications. At Step 4-12, TLS-AGT1 123 may send the ClientHello message to TCP-AGT2 122. At Step 4-13, TCP-AGT2 122 may send the ClientHello message to its destination, the web server SRV1 130. At Step 4-14, SRV1 130 may respond to the ClientHello message with a TLS ServerHello message, which may be intercepted by TCP-AGT2 122. TCP-AGT2 122 may compute the packet's flow identifier “Flow-1234” and may look it up in store 129 (ref. FIG. 3) for the intra-proxy packet forwarding action, which is to send packets directly to TCP-AGT1 121, that is, to bypass the proxy function. At Step 4-15, TCP-AGT2 122 may send the ServerHello message directly to TCP-AGT1 121. At Step 4-16, TCP-AGT1 121 may send the ServerHello message to HOST1 110.

At Step 4-17, the multiple substeps of sending subsequent TLS handshake messages (Certificate, ServerKeyExchange, . . . , Finished) between host HOST1 110 and web server SRV1 130 that establish a TLS tunnel between HOST1 110 and SRV1 130, with TCP-AGT1 121 and TCP-AGT2 122 intermediating, are shown in aggregate as bi-directional arrows between HOST1 110, TCP-AGT1 121, TCP-AGT 122, and SRV1 130. The TLS messages referenced above may bypass the proxy functions, because this HTTPS session is not to be decrypted, as determined by the domain-name-decrypt-list (which does not include www.srv1.net).

Now that the TLS tunnel has been created with terminal points at HOST1 110 and SRV1 130, HOST1 110 and SRV1 130 may conduct an HTTP session, but each HTTP message is encrypted as it ingresses the TLS tunnel and decrypted as it egresses the tunnel, that is, an HTTPS session. Step 4-18 shows in aggregate the HTTPS session between HOST1 110 and SRV1 130, with TCP-AGT1 121 and TCP-AGT2 122 intermediating. If or when the HTTPS session is finished, the TCP connection between HOST1 110 and SRV1 130 may be torn down through a typical sequence of TCP signals (e.g., FIN, ACK turns). This is represented in aggregate at Step 4-19, with TCP-AGT1 121 and TCP-AGT2 122 intermediating.

FIGS. 5A, 5B, and 5C illustrate an embodiment in which the efficient SSL/TLS proxy may determine to decrypt an HTTPS session, based on the domain name of the HTTPS server. Upon decryption, it may be discovered that the session's URI matches a list of URIs managed by the MITM 125, and thus further processing will be performed on the decrypted packets composing the HTTPS session, in accordance with the logic of some high-level application using the efficient proxy—for example, a cybersecurity application—by passing those packets through the MITM 125.

For FIG. 5A, Steps 5-1 through 5-8 are similar to the corresponding Steps 4-1 through 4-8 in FIG. 4A, except the target HTTPS server is web server SRV2 132 instead of SRV1 130. Steps 5-1 and 5-2 in FIG. 5A are the same as Steps 4-1 and 4-2 in FIG. 4A.

Referencing FIG. 5A, host HOST1 110 may initiate an HTTPS session with a web server SRV2 132 with a domain name www.srv2.net via a web browser (a web/HTTP client) application by pointing the browser to the URI https://www.srv2.net/index.html. Host 110 resolves the domain name www.srv2.net to an IP address, for example, 5.6.7.8, either by checking a local DNS cache, or querying the Domain Name System (DNS), etc. (not shown in the diagram FIG. 5A).

To initiate the HTTPS session's communications with web server SRV2 132 www.srv2.net, at Step 5-3, HOST1 110 first initiates a TCP connection with web server SRV2 132 port 443 by issuing a TCP SYN message, which is intercepted by TCP-AGT1 121. TCP-AGT1 121 locally computes (and records in a lookup table) the (bi-directional) flow identifier “Flow-5678” for the TCP connection, for example, a hash of the packet's source and destination IP addresses, source and destination ports, and IP protocol type, as well as the current, or initial default, intra-proxy packet-forwarding action for packets associated with this HTTPS session. For packets transmitting in the direction of client-to-server, such as this TCP SYN packet initiating a new session, the initial default intra-proxy packet-forwarding action is to forward the packet from TCP-AGT1 121 directly to TCP-AGT2 122, which TCP-AGT1 121 does at Step 5-4. TCP-AGT2 similarly computes and records the flow identifier “Flow-5678” and initial default intra-proxy packet-forwarding action (which is to forward packets transmitting in the direction of server-to-client from TCP-AGT2 122 directly to TCP-AGT1 121). At Step 5-5, TCP-AGT2 122 forwards the TCP SYN packet towards its destination of web server SRV2 132.

At Step 5-6, the multiple substeps of TCP packet transmissions that establish the TCP connection between HOST1 110 and SRV2 132, with TCP-AGT1 121 and TCP-AGT2 122 intermediating, are shown in aggregate as bi-directional arrows between HOST1 110, TCP-AGT1 121, TCP-AGT 122, and SRV2 132.

The next few steps establish a TLS tunnel between HOST1 110 and SRV2 132, intermediated by the SSL/TLS proxy, during which a search is conducted on the domain-name-decrypt-list. At Step 5-7, host HOST1 110 may send a TLS ClientHello message towards web server SRV2 132, which is intercepted by TCP-AGT1 121. Upon receiving the TLS ClientHello message (which initiates the TLS handshake/tunnel setup process), TCP-AGT1 121 may be configured to set its intra-proxy packet-forwarding action to forward client-to-server packets to TLS-AGT1 123. At Step 5-8, TCP-AGT1 121 may send the packet containing the TLS ClientHello message to TLS-AGT1 123.

Upon receipt of the packet with the ClientHello message, TLS-AGT1 123 computes and records the flow identifier value “Flow-5678” and an initial default intra-proxy packet forwarding action, which may be to forward the ClientHello message directly to TLS-AGT2 124. First, however, TLS-AGT1 123 extracts the Server Name Indication (SNI) value from the ClientHello message, which is www.srv2.net. At Step 5-9, TLS-AGT1 123 sends a query to MITM 125 to check if www.srv2.net is in the domain-name-decrypt-list. MITM 125 searches domain-name-decrypt-list, and determines that www.srv2.net is in the list, and thus the subsequent HTTPS session should be decrypted by the proxy. At Step 5-10, MITM 125 responds “True” to the query by signaling TLS-AGT1 123 that www.srv2.net is in the domain-name-decrypt-list, and therefore that the associated HTTPS session should be decrypted by the proxy.

Referencing FIG. 5B, at Step 5-11, TLS-AGT1 123 signals both TCP agents TCP-AGT1 121 and TCP-AGT2 122 to, respectively, send all intra-proxy packets with flow identifier “Flow-5678” to, respectively, TLS-AGT1 123 and TLS-AGT2 124, in order to have the proxy decrypt the subsequent HTTPS session. At Step 5-12, TLS-AGT1 123 sends the ClientHello message to TLS-AGT2 124. Upon receiving the ClientHello message, TLS-AGT2 124 computes and records locally the flow identifier value “Flow-5678” and an initial default intra-proxy packet forwarding action, which is to forward packets directly to TLS-AGT1 123. At Step 5-13, TLS-AGT2 124 sends the ClientHello message to TCP-AGT2 122, which sends the ClientHello to the destination SRV2 132. At Step 5-14, SRV2 132 responds with a ServerHello message which is intercepted by TCP-AGT2 122, which sends the ServerHello message to TLS-AGT2 124, which sends the ServerHello message to TLS-AGT1 123, which sends the ServerHello message to TCP-AGT1 121, which sends the ServerHello message to HOST1 110.

In Steps 5-15 through 5-21, TLS tunnels may be established between TLS-AGT2 124 and SRV2 132, and between TLS-AGT1 123 and HOST1 110. In this embodiment, TLS-AGT2 124 may spoof HOST1 110 such that it may appear to SRV2 132 that it is directly interacting with HOST1 110 as both an IP-addressable endpoint and as the far-end terminal point of the TLS tunnel between HOST1 110 and SRV2 132; and similarly, TLS-AGT1 123 may spoof SRV2 132 such that it may appear to HOST1 110 that it is directly interacting with SRV2 132 as both an IP-addressable endpoint and as the far-end terminal point of the TLS tunnel between HOST1 110 and SRV2 132. Neither HOST1 110 nor SRV2 132 (respectively) may be aware that they are actually interacting with proxy components TLS-AGT1 123 and TLS-AGT2 124 (respectively). For simplicity of description, Steps 5-15 through 5-21 described below may use self-signed certificates; however, in common practice, a server certificate may not be self-signed—applications typically treat self-signed certificates as a security risk—but instead may be signed by the certificate authority that created the server certificate; and the certificate authority's certificate that was used to sign the server certificate will be included in the Certificate message, along with the server certificate, to form a chain of trust. In this respect, these assumptions, simplifications, and associated specifications are not intended to be limiting.

At Step 5-15, SRV2 132 may send a Certificate message, containing SRV2 132's server certificate, which may be intercepted by TCP-AGT2 122, which may send the Certificate message to TLS-AGT2 124. For simplicity of description, the server certificate may be self-signed, and the agents (e.g., a web browser on host 110, TLS agents 123 and 124, MITM 125) processing any self-signed certificates may not reject them or otherwise request intervention by other agents or users. Further assume that although in practice, an implementation will likely extract the server name (www.srv2.net) from the server certificate and compare it to the SNI value, or otherwise apply logic that acts on the server name for this session (because the server name contained in the Certificate is reliable), such as having the MITM check that the server name is in the domain-name-decrypt-list, for simplicity of description, such steps will not be described here. This does not limit the scope of the disclosure.

Upon receiving the Certificate message, TLS-AGT2 124 may proceed to establish a TLS tunnel with SRV2 132, while spoofing HOST1 110 (by using HOST1 110's IP address as the source IP address in the IP header of packets that TLS-AGT2 124 generates), and with TCP-AGT2 122 intermediating. At Step 5-16, TLS-AGT2 124 and SRV2 132 may establish a TLS tunnel. In one of many embodiments, the TLS tunnel may be established using the following sub-steps: SRV2 132 may send a ServerKeyExchange message to TLS-AGT2 124; SRV2 132 may send a ServerHelloDone message to TLS-AGT2 124; TLS-AGT2 124 may send a ClientKeyExchange message to SRV2 132; TLS-AGT2 124 may send a ChangeCipherSpec message to SRV2 132; TLS-AGT2 124 may send a Finished message to SRV2 132; SRV2 132 may send a ChangeCipherSpec message to TLS-AGT2 124; and SRV2 132 may send a Finished message to TLS-AGT2 124 (message sequence details are not shown in FIG. 5B).

Subsequently, a TLS tunnel may be established between TLS-AGT1 123 and HOST1 110, for which TLS-AGT1 123 spoofs SRV2 132, i.e., HOST1 110 believes it is directly interacting with SRV2 132 to establish the TLS tunnel but in fact is interacting with TLS-AGT1 123. First, however, the proxy needs to generate a new server certificate for SRV2 132 that TLS-AGT1 123 uses to establish the TLS tunnel with HOST1 110, as is standard operation for SSL/TLS proxies. (The server certificate provided by SRV2 132 may not simply be copied and re-used; one reason is that a private key known only to SRV2 132 is associated with its server certificate that is used to decrypt and encrypt messages. Without this key, TLS-AGT1 123 may not establish a TLS tunnel with HOST1 110 while using the server certificate of SRV2 132.)

At Step 5-17, TLS-AGT2 124 may send a copy of the server certificate to MITM 125. At Step 5-18, MITM 125 sends the server certificate to certificate authority CA 126, and requests a new certificate that spoofs SRV2 132's server certificate. At Step 5-19, CA 126 sends a new spoofed server certificate and other necessary information (e.g., a private key for the certificate) to MITM 125. At Step 5-20, MITM 125 sends the spoofed server certificate, and the associated information, to TLS-AGT1 123, along with an instruction to establish a TLS tunnel with HOST1 110. At Step 5-21, in a process similar to Step 5-16, TLS-AGT1 123 proceeds to establish a TLS tunnel with HOST1 110, while spoofing SRV2 132 (by using SRV2 132's IP address as the source IP address in the IP header of packets that TLS-AGT1 123 generates, and by using the spoofed server certificate generated by CA 126), and with TCP-AGT1 121 intermediating.

HOST1 110 now initiates an HTTP session with SRV2 132. All HTTP messages will be sent through the two TLS tunnels, with the proxy intermediating. Referring to FIG. 5C, at Step 5-22, HOST1 110 sends an HTTP request message with Request-Line “GET https://www.srv2.net/path1/resource1 HTTP/1.1” into the TLS tunnel, which encrypts the request upon tunnel ingress and decrypts the HTTP request message upon tunnel egress, where it is received by TLS-AGT1 123 (with TCP-AGT1 121 intermediating).

At Step 5-23, TLS-AGT1 123 extracts the URI https://www.srv2.net/path1/resource1 from the (plaintext) HTTP request message and sends it to MITM 125. Recall that at Step 5-2 of FIG. 5A, the MITM 125 stored a list of URIs “URI-decrypt-list” to compare with URIs used in HTTPS sessions, as may be done in a cybersecurity application, or privacy protection application, or a law-enforcement wiretapping application, or other applications that have logic that acts on the URI value of an HTTPS session. The MITM 125 compares the URI https://www.srv2.net/path1/resource1 to the entries in URI-decrypt-list. If there is a match or sufficient correspondence, then the MITM 125 may signal a high-level application (not shown in FIG. 5C) that is using the efficient SSL/TLS proxy. The high-level application may then execute additional logic. For example, a cybersecurity application or a law-enforcement wiretapping application may signal the MITM 125 to log and capture the decrypted packets composing the HTTPS session, for subsequent use by a cyberanalysis application which may assess the severity of the threat posed by the communications between HOST1 110 and the URI https://www.srv2.net/path1/resource1. Thus, the remainder of the session will pass all of the decrypted packets through the MITM 125. Accordingly, at Step 5-24 a, MITM 125 signals TLS-AGT1 123 to send intra-proxy packets to MITM 125; and at Step 5-24 b, MITM 125 signals TLS-AGT2 124 to send intra-proxy packets to MITM 125. At Step 5-25, TLS-AGT1 123 sends the (plaintext) HTTP request message to MITM 125, which may apply logic to the packet(s) according to the high-level application using the efficient proxy. At Step 5-26, MITM 125 sends the HTTP request message to TLS-AGT2 124, which sends the message into the TLS tunnel; then the (encrypted) message traverses the tunnel via TCP-AGT2 122 and egresses the tunnel at the destination endpoint SRV2 132. At Step 5-27, SRV2 132 generates a response to the HTTP request, and sends it into the tunnel towards HOST1 110 via TCP-AGT2 122, TLS-AGT2 124, MITM 125, TLS-AGT1 123, and TCP-AGT1 121. At Step 5-28, the HTTPS session may be terminated by tearing down the TCP connection between HOST1 110 and SRV1 132, which is transparently intermediated by the proxy's TCP-AGT1 121 and TCP-AGT2 122, using a typical sequence of TCP signals (e.g., FIN, ACK turns).

FIG. 6 depicts another embodiment similar to FIG. 5 except the session's URI does not match any element in URI-decrypt-list, and thus the remainder of the session does not pass through the MITM 125, which results in some efficiencies. Referring to FIG. 6, Steps 6-1 through 6-21 are the same as Steps 5-1 through 5-21 in FIG. 5 except the URI is https://www.srv2.net/path2/resource2 instead of https://www.srv2.net/path1/resource1. At Step 6-22, HOST1 110 sends an HTTP request message with Request-Line “GET https://www.srv2.net/path2/resource2 HTTP/1.1” into the TLS tunnel, which encrypts the request upon tunnel ingress and decrypts the request message upon tunnel egress, where it is received by TLS-AGT1 123 (with TCP-AGT1 121 intermediating).

At Step 6-23, TLS-AGT1 123 extracts the URI https://www.srv2.net/path2/resource2 from the HTTP request message and sends it to MITM 125. Recall that at Step 5-2 of FIG. 5A, which corresponds to Step 6-2 of FIG. 6, the MITM 125 stored a list of URIs “URI-decrypt-list” to compare with URIs used in HTTPS sessions, as may be done in a cybersecurity application, or privacy protection application, or other applications that have logic that acts on the URI value of an HTTPS session. The MITM 125 compares the URI https://www.srv2.net/path2/resource2 to the entries in URI-decrypt-list. The MITM 125 determines that there is not a match or sufficient correspondence; thus, at Step 6-24 a, MITM 125 signals TLS-AGT1 123 to send intra-proxy packets directly to TLS-AGT2 124 (i.e., to bypass the MITM 125, because the higher-level application using the proxy is not interested in processing this session). Similarly, at Step 6-24 b, MITM 125 signals TLS-AGT2 124 to send intra-proxy packets directly to TLS-AGT1 123 (i.e., to bypass the MITM 125, because the higher-level application using the proxy is not interested in processing this session). At Step 6-25, TLS-AGT1 123 sends the HTTP request message directly to TLS-AGT2 124 (bypassing the MITM 125); then TLS-AGT2 124 sends the HTTP request message into the TLS tunnel towards SRV2 132; then the message traverses the tunnel via TCP-AGT2 122 and egresses the tunnel at the destination endpoint SRV2 132. At Step 6-26, SRV2 132 generates a response to the HTTP request, and sends it towards HOST1 110 via TCP-AGT2 122, TLS-AGT2 124, TLS-AGT1 123, and TCP-AGT1 121 (again, bypassing the MITM 125). At Step 6-27, the HTTPS session may be terminated by tearing down the TCP connection between HOST1 110 and SRV1 132, which is transparently intermediated by the proxy's TCP-AGT1 121 and TCP-AGT2 122, using a typical sequence of TCP signals (e.g., FIN, ACK turns).

There is a variation on the above FIGS. 4, 5, and 6 that may broaden the scope of the disclosure. In Steps 4-1, 5-1, and 6-1 of respectively FIGS. 4A, 5A, and 6, a “domain-name-decrypt-list” containing domain names is created and eventually used to signal the efficient proxy to potentially decrypt packets in a session if the domain name of the session matches a domain name in the “domain-name-decrypt-list”. Consider instead, or in addition to, the use of a “domain-name-do-not-decrypt-list”, which may signal the efficient proxy to—not—decrypt packets in a session if the domain name of the session matches a domain name in the list. This may be more relevant to privacy applications in which certain communications should remain encrypted during transmission. Or, both types of lists may be used at the same time, with one list taking precedence over the other.

Another variation on the above FIG. 5 is when a match is found between a URI in the URI-decrypt-list and the URI of the session, the MITM may signal to end the session, for example, to prevent sensitive information from being communicated. This may be accomplished by, for example, terminating the TCP connection by generating a TCP RST signal and sending it to either the HOST1 110, or to SRV2 132, or both.

Another variation on FIG. 4 is to use a list of IP addresses “IP-address-decrypt-list” to determine whether or not to decrypt a given TLS-secured communication. Referencing FIG. 4A, at Step 4-1, an IP-address-decrypt-list containing IP addresses is generated by a list manager 128. List generation may be via a user interface that accepts IP addresses as input, or via resolving domain names using DNS, or via IP addresses supplied by threat intelligence providers via subscription services, or via privacy protection data and policies, etc. At Step 4-2, the list manager LST-MGR 128 transfers the IP-address-decrypt-list to the MITM 125. Steps 4-3 through 4-8 are the same as above (although at Step 4-8, extraction of the SNI value contained in the ClientHello message may be omitted). At Step 4-9, TLS-AGT1 123 extracts the source IP address and/or the destination IP address from the header of the IP packet that contains the ClientHello message, then sends a query to MITM 125 to check if the IP addresses are in the IP-address-decrypt-list. MITM 125 searches the IP-address-decrypt-list, and determines that the IP addresses are not in the list, and thus the session should not be decrypted. At Step 4-10, MITM 125 responds “False” to the query, which signals TLS-AGT1 123 that the IP addresses are not in the IP-address-decrypt-list, and therefore that the associated HTTPS session should not be decrypted by the proxy. Referencing FIG. 4B, Steps 4-11 through 4-19 proceed as above, i.e., the session bypasses the proxy decryption.

As a variation on the variation immediately above, if in Step 4-9 of FIG. 4A the MITM 125 searches the IP-address-decrypt-list, and determines that the IP addresses are in the list, then the session is to be decrypted. In that case, the process proceeds similarly as Steps 5-10 through 5-28 in FIG. 5.

The functions and steps described herein may be embodied in computer-usable data or computer-executable instructions, such as in one or more program modules, executed by one or more computers or other devices to perform one or more functions described herein. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by one or more processors in a computer or other data-processing device. The computer-executable instructions may be stored on a computer-readable medium such as a hard disk, optical disk, removable storage media, solid-state memory, RAM, etc. As will be appreciated, the functionality of the program modules may be combined or distributed as desired. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents, such as integrated circuits, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGA), and the like. Particular data structures may be used to more effectively implement one or more aspects of the disclosure, and such data structures are contemplated to be within the scope of computer-executable instructions and computer-usable data described herein.

Although not required, one of ordinary skill in the art will appreciate that various aspects described herein may be embodied as a method, system, apparatus, or one or more computer-readable media storing computer-executable instructions. Accordingly, aspects may take the form of an entirely hardware embodiment, an entirely software embodiment, an entirely firmware embodiment, or an embodiment combining software, hardware, and firmware aspects in any combination.

As described herein, the various methods and acts may be operative across one or more computing devices and networks. The functionality may be distributed in any manner or may be located in a single computing device (e.g., a server, client computer, or the like).

Aspects of the disclosure have been described in terms of illustrative embodiments thereof. Numerous other embodiments, modifications, and variations within the scope and spirit of the appended claims will occur to persons of ordinary skill in the art from a review of this disclosure. For example, one of ordinary skill in the art will appreciate that the steps illustrated in the illustrative figures may be performed in other than the recited order and that one or more illustrated steps may be optional. Any and all features in the following claims may be combined or rearranged in any way possible. 

What is claimed is:
 1. A method comprising: storing, by a computing device, a list of identification data and at least one corresponding action to perform on encrypted communication flows associated with corresponding identification data; receiving, by the computing device, one or more packets initiating at least one encrypted communication flow; identifying, by the computing device, flow identification data associated with the one or more packets initiating the at least one encrypted communication flow; comparing, by the computing device, the identified flow identification data with the list of the identification data; and decrypting, by the computing device and based on the comparing resulting in a match with data of the list, each packet of an encrypted communication flow associated with the match with data of the list and performing a corresponding action on each packet of the encrypted communication flow associated with the match with data of the list; and re-encrypting, after performing the corresponding action, each packet of the encrypted communication flow associated with the match with data of the list and transmitting each packet of the encrypted communication flow to its intended destination.
 2. The method of claim 1, further comprising: receiving, by the computing device, a list of one or more network addresses and/or domain names from a security application; and creating the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 3. The method of claim 1, further comprising: receiving, by the computing device and via a subscription service, at least one list of network addresses and/or domain names from one or more cyber threat intelligence providers; and creating the list of the identification data based on the received at least one list of network addresses and/or domain names.
 4. The method of claim 1, further comprising: receiving, by the computing device, a list of one or more network addresses and/or domain names from a privacy protection application; and creating the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 5. The method of claim 1, further comprising: receiving, by the computing device, a list of one or more network addresses and/or domain names from a law-enforcement wiretapping application; and creating the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 6. The method of claim 1, further comprising: forwarding, by the computing device, a plurality of packets associated with a particular encrypted communication flow to their intended destinations, wherein the plurality of packets are not decrypted prior to the forwarding.
 7. The method of claim 1, further comprising: receiving, by the computing device, a first list of one or more network addresses and/or domain names, wherein the first list of one or more network addresses and/or domain names indicates network addresses and/or domain names whose corresponding encrypted communication flows are to be decrypted; receiving, by the computing device, a second list of one or more network addresses and/or domain names, wherein the second list of one or more network addresses and/or domain names indicates network addresses and/or domain names whose corresponding encrypted communication flows are not to be decrypted; assigning a first priority to the first list of one or more network addresses and/or domain names and a second priority to the second list of one or more network addresses and/or domain names, wherein the first priority is different from the second priority; and creating, based on the first priority and the second priority, an ordered list of identification data from the first list of one or more network addresses and/or domain names and the second list of one or more network addresses and/or domain names.
 8. The method of claim 1, wherein the list of the identification data indicates a particular action to perform on the identification data comprised by the list; wherein the comparing the identified flow identification data with the list of the identification data determines that the list of the identification data does not comprise the identified flow identification data, the method further comprising: performing, by the computing device and based on a comparison indicating no match with data of the list, an action other than the particular action indicated by the list of the identification data.
 9. The method of claim 8, wherein the action other than the particular action indicated by the list comprises terminating an associated encrypted communication flow.
 10. The method of claim 8, wherein the action other than the particular action indicated by the list comprises: logging packets associated with an associated encrypted communication flow for subsequent analysis; and forwarding the packets associated with the associated encrypted communication flow to their respective intended destinations.
 11. An apparatus comprising: at least one processor; and memory storing instructions that when executed by the at least one processor cause the apparatus to: store a list of identification data and at least one corresponding action to perform on encrypted communication flows associated with each corresponding identification data; receive one or more packets initiating at least one encrypted communication flow; identify flow identification data associated with the one or more packets initiating the at least one encrypted communication flow; compare the identified flow identification data with the list of identification data; decrypt, based on comparing the identified flow identification data with the list of the identification data resulting in a match with data of the list, each packet of an encrypted communication flow associated with the match with data of the list and performing a corresponding action on each packet of the encrypted communication flow associated with the match with data of the list; and re-encrypt, after performing the corresponding action, each packet of the encrypted communication flow associated with the match with data of the list and transmit each packet of the encrypted communication flow to its intended destination.
 12. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: receive a list of one or more network addresses and/or domain names from a security application; and create the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 13. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: receive, via a subscription service, at least one list of network addresses and/or domain names from one or more cyber threat intelligence providers; and create the list of the identification data based on the received at least one list of network addresses and/or domain names.
 14. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: receive a list of one or more network addresses and/or domain names from a privacy protection application; and create the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 15. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: receive a list of one or more network addresses and/or domain names from a law-enforcement wiretapping application; and create the list of the identification data based on the received list of the one or more network addresses and/or domain names.
 16. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: forward a plurality of packets associated with a particular encrypted communication flow to their intended destinations, wherein the plurality of packets are not decrypted prior to the forwarding.
 17. The apparatus of claim 11, wherein the instructions, when executed by the at least one processor, further cause the apparatus to: receive a first list of one or more network addresses and/or domain names, wherein the first list of one or more network addresses and/or domain names indicates network addresses and/or domain names whose corresponding encrypted communication flows are to be decrypted; receive a second list of one or more network addresses and/or domain names, wherein the second list of one or more network addresses and/or domain names indicates network addresses and/or domain names whose corresponding encrypted communication flows are not to be decrypted; assign a first priority to the first list of one or more network addresses and/or domain names and a second priority to the second list of one or more network addresses and/or domain names, wherein the first priority is different from the second priority; and create, based on the first priority and the second priority, an ordered list of identification data from the first list of one or more network addresses and/or domain names and the second list of one or more network addresses and/or domain names.
 18. The apparatus of claim 11, wherein the list of the identification data indicates a particular action to perform on the identification data comprised by the list; wherein the comparing the identified flow identification data with the list of the identification data determines that the list of the identification data does not comprise the identified flow identification data; and wherein the instructions, when executed by the at least one processor, cause the apparatus to perform, based on a comparison indicating no match with data of the list, an action other than the particular action indicated by the list of the identification data.
 19. The apparatus of claim 18, wherein the action other than the particular action indicated by the list of identification data comprises terminating an associated encrypted communication flow.
 20. The apparatus of claim 18, wherein the action other than the particular action indicated by the list further causes the apparatus to: log packets associated with an associated encrypted communication flow for subsequent analysis; and forward the packets associated with the associated encrypted communication flow to their respective intended destinations. 